#ifndef GX_FR_EDITOR_TOOLBOX_H
#define GX_FR_EDITOR_TOOLBOX_H

#include "LibGL/GxUI.h"

namespace FinalRendering
{
	namespace Editor
	{
		using namespace GxRendering::UI;
		using namespace GxLibBasic;

		class Header : public Control
		{
		public:
			RefPtr<Label> Text;
			void Draw(int absX, int absY);
			Header();
		};

		class TitledPanel : public Container
		{
		private:
			Header * header;
			bool expanded;
			int maxHeight;
			void HeaderClicked(UI_Base * sender);
		public:
			void Collapse();
			void Expand();
			void SetText(const String & text);
			TitledPanel();
		};

		class ToolBox : public Container
		{
		private:
			ToolStrip * tools;
			Header * header;
			void btnPointerClicked(UI_Base * sender);
			void btnBrushClicked(UI_Base * sender);
			void btnClipBrushClicked(UI_Base * sender);
			void btnEntityClicked(UI_Base * sender);
			void UncheckAll();
		public:
			ToolBox();
		};
	}

}

#endif